package com.empire.monitoring.exception;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.servlet.ModelAndView;

//@ControllerAdvice
public class GlobalExceptionController {
	@ExceptionHandler(value={java.lang.ArithmeticException.class})
	public ModelAndView  arithmeticExceptionHandler(Exception e){
		ModelAndView mv=new ModelAndView();
		mv.addObject("error", e.toString());
		mv.setViewName("error1");
		return mv;
	}
}
